package router

import (
	"banzhuan-sys/handle/v1/spy"
	"github.com/gin-gonic/gin"
	v1 "banzhuan-sys/handle/v1"
)

func Load(g *gin.Engine) {

	g.Use(gin.Recovery())

	app := g.Group("v1")
	{
		u := app.Group("pool")
		{
			u.GET("get_ips", v1.GetIps)
			u.GET("check_pool", v1.CheckPool)
			u.GET("check_ip", v1.CheckOIp)
		}


		v1Spy := app.Group("spy")
		{
			v1Spy.GET("crawl", spy.Crawl)
		}


	}

}
